[filechooser] Unref cancellables we got from the model, not the ones that come into...
authorFederico Mena Quintero <federico@gnome.org>
Fri, 1 Apr 2011 22:06:51 +0000 (16:06 -0600)
committerFederico Mena Quintero <federico@gnome.org>
Fri, 1 Apr 2011 23:00:17 +0000 (17:00 -0600)
commit58609cfdaf4f4772aaa57b7a03d1d150da59b853
tree12fd09b416657d124060015fe11f5af265baf798
parenta24f61fb3763c71eccbe4e34efd79e5e19ca1414
[filechooser] Unref cancellables we got from the model, not the ones that come into the callback

The model_cancellables have an extra ref when we get them from gtk_tree_model_get().
So, we need to unref them always.  On the other hand, the cancellables that get
passed as arguments to the callbacks in question are memory-managed by
GtkFileSystemModel.

Reported by Morten Welinder <mortenw@gnome.org>

https://bugzilla.gnome.org/show_bug.cgi?id=646460
gtk/gtkfilechooserbutton.c
gtk/gtkfilechooserdefault.c